package com.service;

import com.domain.IssueComment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.domainVO.CommentUserIsMeVO;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.qiniu.common.QiniuException;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 大忽悠
 * @since 2022年02月08日
 */
public interface IIssueCommentService extends IService<IssueComment> {

    Map<String,Object> getCommentsUnderTargetIssue(Integer issue_id, Integer startPage, Integer pageSize);

    CommentUserIsMeVO getTargetCommentInfoDetail(Integer comment_id) throws JsonProcessingException;

    boolean likeTargetComment(Integer comment_id);

    boolean unLikeTargetComment(Integer comment_id);

    Boolean delTargetComment(Integer comment_id) throws QiniuException, JsonProcessingException;

    Boolean logicDelTargetComment(Integer comment_id);

    Boolean WeiXinDel(Integer comment_id);

    Map<String, Object> getMyComments(Integer startPage, Integer pageSize) throws JsonProcessingException;

    Map<String,Object> getUnauditComment(Integer startPage, Integer pageSize) throws JsonProcessingException;

    Boolean passComment(Integer comment_id);

    Boolean backLogicDel(Integer comment_id, String reason);
}
